<template lang="pug">
  .header
    el-page-header.title(@back="back", :content="title")/
    el-divider/
</template>

<script>
  export default {
    props: {
      title: String
    },
    methods: {
      back() {
        // this.$message({
        //   message: '点击了back',
        //   type: 'success'
        // })
        this.$router.go(-1)
      }
    },
  }
</script>

<style lang="less" scoped>
  .header {
    margin-top: 20px;
    .title {
      overflow: hidden;
      text-overflow:ellipsis;
      white-space: nowrap;
    }
  }
</style>
